import hashlib
import json

import requests

datas = []
figerprint_set = set()

for i in range(100):
    res = requests.get("https://yesno.wtf/api")
    data = res.json()
    figmer_print = hashlib.md5(json.dumps(data).encode()).hexdigest()
    if figmer_print not in figerprint_set:
        datas.append(data)
        figerprint_set.add(figmer_print)




print(f"获取去重以后的结果", len(datas))
